d607b30b6a0b36d5d80d08102ca4735be69d8691,source/net/yacy/kelondro/io/Records.java,Records,get,#number#number[]#number#,268

Before Change


        assert b.length - start >= this.recordsize;
        if (index >= size()) throw new IndexOutOfBoundsException("kelondroEcoFS.get(" + index + ") outside bounds (" + this.size() + ")");
        // check if index is inside of cache
        int p = inCache(index);
        final int q = (p >= 0) ? -1 : inBuffer(index);
        if ((p < 0) && (q < 0)) {
            // the index is outside of cache and buffer index. shift cache window
            fillCache(index);

After Change


        assert b.length - start >= this.recordsize;
        if (index >= size()) throw new IndexOutOfBoundsException("kelondroEcoFS.get(" + index + ") outside bounds (" + this.size() + ")");
        // check if index is inside of cache
        final int q = inBuffer(index);
        if (q < 0) {
            // copy records from file to given buffer
            raf.seek(this.recordsize * index);